<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="header.jsp" %>

<div class="content_wrap">
<section id="content">
<br><hr><br><br><hr><br>

	<h1>Event ${event.name}</h1>
	<c:if test="${not empty optionsWithOdds}">
		<table>
			<c:forEach var="optionWithOdds" items="${optionsWithOdds}">
				<tr>
					<td>${optionWithOdds.option.name}</td>
					<td>${optionWithOdds.odds}</td>
					<td><a href='placebet?id=${optionWithOdds.option.id}'>Place bet</td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</section>
</div>


<%@ include file="footer.jsp" %>